<?php defined('SYSPATH') or die('No direct script access.');
/**
 * Created by script.php
 * Date: 04.12.13
 * User: Lesh
 */
?>
	<script>
		image.page = <?= $page;?>;
		image.pageCount = <?= ceil($page_count / $page_item);?>;
		image.itemCount = <?= $page_count;?>;
		image.itemPage = <?= $page_item;?>;
		$(document).ready(function() {
			image.index();
			image.submitUpload();
			$("a[rel=group]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'speedIn'		: 150,
				'speedOut'		: 450,
				'titlePosition' 	: 'over'
			});
		});
	</script>